{template modoer_header}
<div id="body">

    <div class="link_path">
        <em>共找到 <span class="font_2">$total</span> 个相册</em>
        <a href="{url modoer/index}">{lang global_index}</a>&nbsp;&raquo;&nbsp;{print implode('&nbsp;&raquo;&nbsp;', $urlpath)}
    </div>

	<div class="album_left">
		<div class="g-list-category">
			<div class="g-list-category-type">
				<h3>分类:</h3>
				<ul class="g-list-category-class">
					<li$active[cate][0]><a href="{url item/albums}">全部</a></li>
					<!--{loop $category $key $val}-->
					<!--{eval if($val[pid]) continue;}-->
					<li$active[cate][$key]><a href="{url item/albums/catid/$key}">$val[name]</a></li>
					<!--{/loop}-->
				</ul>
				<div class="clear"></div>
			</div>
		</div>

		<div class="subrail mt10">
			显示方式:
			<span$active[mode][normal]><a href="javascript:;" onclick="list_display('item_album_mode','normal')">图文</a></span>
			<span$active[mode][waterfall]><a href="javascript:;" onclick="list_display('item_album_mode','waterfall')">瀑布流</a></span>
			&nbsp;|&nbsp;
			排序方式:
			<span$active[orderby][normal]><a href="javascript:;" onclick="list_display('item_album_orderby','normal')">默认</a></span>
			<span$active[orderby][num]><a href="javascript:;" onclick="list_display('item_album_orderby','num')">图片数量</a></span>
            <span$active[orderby][pageview]><a href="javascript:;" onclick="list_display('item_album_orderby','pageview')">浏览量</a></span>
		</div>
		<div class="mainrail album-view">
			<ul class="album-view-normal">
				<!--{dbres $list $val}-->
				<li>
					<div class="thumb"><a href="{url item/album/id/$val[albumid]}" target="_blank"><img src="{URLROOT}/{if $val[thumb]}$val[thumb]{else}static/images/noimg.gif{/if}" /></a></div>
					<div class="info">
						<h3><a href="{url item/album/id/$val[albumid]}" title="$val[name]">{sublen $val[name],10}</a></h3>
						<p>
							<span>所属：<a href="{url item/detail/id/$val[sid]}">{sublen $val[sname],10}</a></span>
							<span>图片 {$val[num]} 张，浏览 {$val[pageview]} 次</span>
							<span>最后更新：{date $val[lastupdate],'m-d H:i'}</span>
						</p>
					</div>
					<div class="clear"></div>
				</li>
				<!--{/dbres}-->
			</ul>
            <div class="clear"></div>
			<!--{if !$total}--><div class="messageborder">暂时没有相册数据。</div><!--{/if}-->
			<div class="multipage">$multipage</div>
		</div>
	</div>

	<div class="album_right">

		<div class="mainrail rail-border-3">
			<div class="rail-h-bm-3">
				<div class="album-side-search mb10">
					<form method="get" action="{URLROOT}/index.php">
						<input type="hidden" name="m" value="item" />
						<input type="hidden" name="act" value="albums" />
						<input type="text" name="keyword" class="t_input" value="$keyword" />&nbsp;
						<button type="submit" class="button">搜索相册</button>
					</form>
				</div>
			</div>
	        <div class="mainrail rail-h-bm-3">
	            <h4 class="rail-h-3">热门相册</h4>
	            <ul class="rail-album">
					<!--{get:item val=album(subject_select/s.name as sname,s.subname,s.pid/city_id/_NULL_CITYID_/orderby/pageview DESC/rows/6/cachetime/3600)}-->
	                <li>
						<div class="thumb">
							<a href="{url item/album/id/$val[albumid]}">{if $val[thumb]}<img src="{URLROOT}/$val[thumb]" />{else}<img src="{URLROOT}/static/images/noimg.gif" />{/if}</a>
						</div>
						<div class="info">
							<h3><a href="{url item/album/id/$val[albumid]}" title="$val[name]">{sublen $val[name],10}</a></h3>
							<span><a href="{url item/detail/id/$val[sid]}">$val[sname]{if $val[subname]}($val[subname]){/if}</a></span>
							<span>{date $val[lastupdate],'Y-m-d'}</span>
						</div>
					</li>
	                <!--{/get}-->
	            </ul>
	            <div class="clear"></div>
	        </div>
		</div>

	</div>

	<div class="clear"></div>
</div>

<!--{eval footer();}-->